package cn.edu.ujn.finaltest.dao;

public class OrderItem {
    private Integer id;

    private Integer product_id;

    private Integer order_id;
    
    private Integer start; 	// 起始行

	private Integer rows; 	// 所取行数
	
	private String product_name;
	
	private String order_number;
	
	private int user_id;	// 根据用户ID查询orderitem
	
	private int num;		// 某订单中某产品的数量

    public int getUser_id() {
		return user_id;
	}

	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}

	public String getProduct_name() {
		return product_name;
	}

	public void setProduct_name(String product_name) {
		this.product_name = product_name;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public String getOrder_number() {
		return order_number;
	}

	public void setOrder_number(String order_number) {
		this.order_number = order_number;
	}

	public Integer getStart() {
		return start;
	}

	public void setStart(Integer start) {
		this.start = start;
	}

	public Integer getRows() {
		return rows;
	}

	public void setRows(Integer rows) {
		this.rows = rows;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getProduct_id() {
        return product_id;
    }

    public void setProduct_id(Integer product_id) {
        this.product_id = product_id;
    }

    public Integer getOrder_id() {
        return order_id;
    }

    public void setOrder_id(Integer order_id) {
        this.order_id = order_id;
    }

	@Override
	public String toString() {
		return "OrderItem [id=" + id + ", product_id=" + product_id + ", order_id=" + order_id + ", start=" + start
				+ ", rows=" + rows + ", product_name=" + product_name + ", order_number=" + order_number + ", user_id="
				+ user_id + ", num=" + num + "]";
	}
}